<T:ViewBase x:Class="WPFExcelReport.TMLKOPF02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLINHABERK:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLINHABERK}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLKNTRDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLKNTRDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLKNTRZEIT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLKNTRZEIT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLINHABER:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLINHABER}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLARCH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLARCH}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLORDNER:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLORDNER}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLRUEDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLRUEDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MLRUEZEIT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMLKOPF.MLRUEZEIT}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsMLKOPF,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwMLKOPF}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwMLKOPF, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="MLMANDANT"
                                    Binding="{Binding Path=MLMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLNR"
                                    Binding="{Binding Path=MLNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLPOS"
                                    Binding="{Binding Path=MLPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLINHABERK"
                                    Binding="{Binding Path=MLINHABERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLINHABERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLKNTRDAT"
                                    Binding="{Binding Path=MLKNTRDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLKNTRDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLKNTRZEIT"
                                    Binding="{Binding Path=MLKNTRZEIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLKNTRZEIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLINHABER"
                                    Binding="{Binding Path=MLINHABER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLINHABER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLARCH"
                                    Binding="{Binding Path=MLARCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLARCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLORDNER"
                                    Binding="{Binding Path=MLORDNER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLORDNER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLRUEDAT"
                                    Binding="{Binding Path=MLRUEDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLRUEDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLRUEZEIT"
                                    Binding="{Binding Path=MLRUEZEIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLRUEZEIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLWVDAT"
                                    Binding="{Binding Path=MLWVDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLWVDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLWVZEIT"
                                    Binding="{Binding Path=MLWVZEIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLWVZEIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLEMPF"
                                    Binding="{Binding Path=MLEMPF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLEMPF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLABS"
                                    Binding="{Binding Path=MLABS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLABS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLABSDAT"
                                    Binding="{Binding Path=MLABSDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLABSDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLABSZEIT"
                                    Binding="{Binding Path=MLABSZEIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLABSZEIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLBETREFF"
                                    Binding="{Binding Path=MLBETREFF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLBETREFF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLMANDANTA"
                                    Binding="{Binding Path=MLMANDANTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLMANDANTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLMANDANTE"
                                    Binding="{Binding Path=MLMANDANTE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLMANDANTE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLEMPFART"
                                    Binding="{Binding Path=MLEMPFART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLEMPFART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLANF"
                                    Binding="{Binding Path=MLANF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLANF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLSPSTA"
                                    Binding="{Binding Path=MLSPSTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLSPSTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLDRINGL"
                                    Binding="{Binding Path=MLDRINGL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLDRINGL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLPERS"
                                    Binding="{Binding Path=MLPERS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLPERS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLWEIDURCH"
                                    Binding="{Binding Path=MLWEIDURCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLWEIDURCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLPAPDAT"
                                    Binding="{Binding Path=MLPAPDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLPAPDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLLOEDAT"
                                    Binding="{Binding Path=MLLOEDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLLOEDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLARCHKZ"
                                    Binding="{Binding Path=MLARCHKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLARCHKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLRUEKZ"
                                    Binding="{Binding Path=MLRUEKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLRUEKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLUKGRD"
                                    Binding="{Binding Path=MLUKGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLUKGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLLEITWEG"
                                    Binding="{Binding Path=MLLEITWEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLLEITWEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLUKDATEI"
                                    Binding="{Binding Path=MLUKDATEI, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLUKDATEI}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLUKPRIMI"
                                    Binding="{Binding Path=MLUKPRIMI, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLUKPRIMI}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLRUEPROG"
                                    Binding="{Binding Path=MLRUEPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLRUEPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLDRBENID"
                                    Binding="{Binding Path=MLDRBENID, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLDRBENID}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLDRAUFTNR"
                                    Binding="{Binding Path=MLDRAUFTNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLDRAUFTNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLSENDPROG"
                                    Binding="{Binding Path=MLSENDPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLSENDPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLFILLER"
                                    Binding="{Binding Path=MLFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLAENDZL"
                                    Binding="{Binding Path=MLAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLAENDBEN"
                                    Binding="{Binding Path=MLAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLAENDDAT"
                                    Binding="{Binding Path=MLAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLNEUBEN"
                                    Binding="{Binding Path=MLNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MLNEUDAT"
                                    Binding="{Binding Path=MLNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MLNEUDAT}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
